package common.utils;

import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

/**
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company 上海众多美网络科技有限公司
 * @author weseal
 * @create 2018/4/16
 */
@NoRepositoryBean
public interface BaseRepository<T,ID> extends MongoRepository<T,ID> {

	List<T> queryPage(Query query);

	long count(Query query);
}
